package com.freecloud.javabasics.design.factory.abstrac;

import com.freecloud.common.LoggerUtil;

/**
 * 测试抽象工厂
 * @Author: maomao
 * @Date: 2020-02-29 22:10
 */
public class AbstractTest {

    public static void main(String[] args) {
        AbstracFactory factory = new ConcreteFactory();

        LoggerUtil.println("游戏：" + factory.newGame().getGameName());
        LoggerUtil.println("IM软件：" + factory.newIM().getImName());

    }
}
